← Back to issue list

Python libraries installed by python path are not found in sys.path

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1876370
Type
issue
State
open
Author
~ack
Labels
Created
2020-05-01 19:57:27.103515+00:00
Updated
2020-05-20 15:21:17.396621+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

snapcraft 4.0, on a core20 snap Python libraries and apps installed by a python part (via pip or setup.pyt dependencies) are installed in $SNAP/lib/python3.8/site-packages, but the path is not added to sys.path: sys.path = [ '/', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/lib/python3/dist-packages', ] As such, those modules are not found when running the app.

Evaluation history

No evaluation history available.